﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PeopleInputFields.ascx.cs"
    Inherits="SERP.Modules.People.PeopleInputFields" %>
<%@ Register Src="~/Modules/HRM/Organizations/DropDownListOrganizations.ascx" TagName="DropDownListOrganizations"
    TagPrefix="Organizations" %>
<%@ Register Src="~/Modules/HRM/PersonTypes/DropDownListPersonTypes.ascx" TagName="DropDownListPersonTypes"
    TagPrefix="PersonTypes" %>
<%@ Register Src="../Controls/DropDownListGender.ascx" TagName="DropDownListGender"
    TagPrefix="uc1" %>
<%@ Register src="../../../Controls/ucDateTime.ascx" tagname="ucDateTime" tagprefix="uc2" %>
<div class="frow">
    <asp:Label ID="labelPersonCode" runat="server" Text="PersonCode" CssClass="label"
        EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtPersonCode" Width="400"></asp:TextBox>
</div>
<div class="frow">
    <asp:Label ID="labelFullName" runat="server" Text="FullName" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtFullName" Width="400"></asp:TextBox>
</div>
<div class="frow">
    <asp:Label ID="labelGender" runat="server" Text="Gender" CssClass="label" EnableViewState="False"></asp:Label>
    <uc1:DropDownListGender ID="txtGender" IsAddChooseItem="true" runat="server" />
    <asp:RequiredFieldValidator ID="validRQGender" ValidationGroup="btnSave" Text=""
        runat="server" ErrorMessage="* không được để trống" Display="dynamic" ControlToValidate="txtGender"></asp:RequiredFieldValidator>
</div>
<div class="frow">
    <asp:Label ID="labelBirthDay" runat="server" Text="BirthDay" CssClass="label" EnableViewState="False"></asp:Label>
    <uc2:ucDateTime ID="txtBirthDay" Width="100" runat="server" />
</div>
<div class="frow">
    <asp:Label ID="labelAddress" runat="server" Text="Address" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtAddress" Width="400"></asp:TextBox>
</div>
<div class="frow">
    <asp:Label ID="labelPhone" runat="server" Text="Phone" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtPhone" Width="400"></asp:TextBox>
</div>
<div class="frow">
    <asp:Label ID="labelEmail" runat="server" Text="Email" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtEmail" Width="400"></asp:TextBox>
</div>
<div class="frow">
    <asp:Label ID="labelPositionId" runat="server" Text="PositionId" CssClass="label"
        EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtPositionId" MaxLength="8" Width="400"></asp:TextBox>
    <asp:RegularExpressionValidator ID="validExpressionPositionId" Display="dynamic"
        runat="server" ControlToValidate="txtPositionId" ErrorMessage="*dữ liệu dạng số nguyên"
        ValidationExpression="^(\+|-)?\d+$" ValidationGroup="btnSave"></asp:RegularExpressionValidator>
    <asp:RequiredFieldValidator ID="validRQPositionId" ValidationGroup="btnSave" Text=""
        runat="server" ErrorMessage="* không được để trống" Display="dynamic" ControlToValidate="txtPositionId"></asp:RequiredFieldValidator>
</div>
<div class="frow">
    <asp:Label ID="labelStartDate" runat="server" Text="StartDate" CssClass="label" EnableViewState="False"></asp:Label>
    <uc2:ucDateTime ID="txtStartDate" runat="server" Width="100" />
</div>
<div class="frow">
    <asp:Label ID="labelNote" runat="server" Text="Note" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtNote" Width="400"></asp:TextBox>
</div>
<div class="frow">
    <asp:Label ID="labelUserId" runat="server" Text="UserId" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:TextBox runat="server" ID="txtUserId" MaxLength="8" Width="400"></asp:TextBox>
    <asp:RegularExpressionValidator ID="validExpressionUserId" Display="dynamic" runat="server"
        ControlToValidate="txtUserId" ErrorMessage="*dữ liệu dạng số nguyên" ValidationExpression="^(\+|-)?\d+$"
        ValidationGroup="btnSave"></asp:RegularExpressionValidator>
    <asp:RequiredFieldValidator ID="validRQUserId" ValidationGroup="btnSave" Text=""
        runat="server" ErrorMessage="* không được để trống" Display="dynamic" ControlToValidate="txtUserId"></asp:RequiredFieldValidator>
</div>
<div class="frow">
    <asp:Label ID="labelOrganizationId" runat="server" Text="OrganizationId" CssClass="label"
        EnableViewState="False"></asp:Label>
    <Organizations:DropDownListOrganizations runat="server" ID="txtOrganizationId" IsAddChooseItem="true"
        Width="400"></Organizations:DropDownListOrganizations>
    <asp:RequiredFieldValidator ID="validRQOrganizationId" ValidationGroup="btnSave"
        Text="" runat="server" ErrorMessage="* Bạn phải lựa chọn." Display="dynamic"
        ControlToValidate="txtOrganizationId"></asp:RequiredFieldValidator>
</div>
<div class="frow">
    <asp:Label ID="labelPersonTypeId" runat="server" Text="PersonTypeId" CssClass="label"
        EnableViewState="False"></asp:Label>
    <PersonTypes:DropDownListPersonTypes runat="server" ID="txtPersonTypeId" IsAddChooseItem="true"
        Width="400"></PersonTypes:DropDownListPersonTypes>
    <asp:RequiredFieldValidator ID="validRQPersonTypeId" ValidationGroup="btnSave" Text=""
        runat="server" ErrorMessage="* Bạn phải lựa chọn." Display="dynamic" ControlToValidate="txtPersonTypeId"></asp:RequiredFieldValidator>
</div>
